#ifndef VOLUMETOOL_H
#define VOLUMETOOL_H

#include <QWidget>

namespace Ui {
class VolumeTool;
}

class VolumeTool : public QWidget
{
    Q_OBJECT

public:
    explicit VolumeTool(QWidget *parent = nullptr);
    ~VolumeTool();
    void paintEvent(QPaintEvent *event) override;
     void onSilenceBtnCliced();
    bool eventFilter(QObject* object, QEvent* event);
     void  setVolume();
signals:
    void setSilence(bool ismuted);
   void setMusicVolume(int);




public:
    bool isMuted;
    int volumeRatio;
private:
    Ui::VolumeTool *ui;
};

#endif // VOLUMETOOL_H
